#include "sdkGlobal.h"
#include "platform_global.h"

typedef struct
{
    RefreshViewFunc mRefreshViewFunc;
    SetWelcomeKeyListener mSetKeyListener;
    CheckWelcomeStatusFunc mCheckStatusFunc;
}platform_welcome_entity;

static platform_welcome_entity g_platform_welcome_entity;

void platform_welcome_init(void)
{
    memset(&g_platform_welcome_entity, 0x00, sizeof(g_platform_welcome_entity));
}

void platform_welcome_set_refresh_view_func(RefreshViewFunc func)
{
    g_platform_welcome_entity.mRefreshViewFunc = func;
}

RefreshViewFunc platform_welcome_get_refresh_view_func(void)
{
    return g_platform_welcome_entity.mRefreshViewFunc;
}

void platform_welcome_set_key_listener_func(SetWelcomeKeyListener func)
{
    g_platform_welcome_entity.mSetKeyListener = func;
}

SetWelcomeKeyListener platform_welcome_get_key_listener_func(void)
{
    return g_platform_welcome_entity.mSetKeyListener;
}

void platform_welcome_set_check_status_func(CheckWelcomeStatusFunc func)
{
    g_platform_welcome_entity.mCheckStatusFunc = func;
}

CheckWelcomeStatusFunc platform_welcome_get_check_status_func(void)
{
    return g_platform_welcome_entity.mCheckStatusFunc;
}
